package com.yuyou.fn.educational.entity;

import com.github.wens.mybatisplus.annotations.TableField;
import com.github.wens.mybatisplus.annotations.TableId;
import com.github.wens.mybatisplus.annotations.TableName;
import com.github.wens.mybatisplus.examples.Example;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * 优惠规则
 *
 */
@TableName(value = "discount_rule")
public class DiscountRule implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	public static Example<DiscountRule> createExample(){
		return new Example<DiscountRule>(DiscountRule.class);
	}

	/**  */
	@TableId(value = "discount_rule_id")
	private Long discountRuleId;

	/** 优惠规则名称 */
	private String name;

	/**  */
	@TableField(value = "category_id")
	private Long categoryId;

	/** 优惠分类 */
	@TableField(value = "category_name")
	private String categoryName;

	/** 优惠说明 */
	private String remark;

	/** 状态 0:不可用 1:可用 */
	private Integer status;

	/** 优惠方式 0:折扣 1:金额 */
	@TableField(value = "discount_type")
	private Integer discountType;

	/** 优惠计算函数 */
	@TableField(value = "cal_function")
	private String calFunction;

	/** 变量参数 */
	private String params;

	/** 录入参数 */
	@TableField(value = "input_params")
	private String inputParams;

	/**  */
	@TableField(value = "create_time")
	private Date createTime;

	/**  */
	@TableField(value = "update_time")
	private Date updateTime;

	public String getInputParams() {
		return inputParams;
	}

	public void setInputParams(String inputParams) {
		this.inputParams = inputParams;
	}

	public Long getDiscountRuleId() {
		return this.discountRuleId;
	}

	public void setDiscountRuleId(Long discountRuleId) {
		this.discountRuleId = discountRuleId;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getCategoryId() {
		return this.categoryId;
	}

	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}

	public String getCategoryName() {
		return this.categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getDiscountType() {
		return this.discountType;
	}

	public void setDiscountType(Integer discountType) {
		this.discountType = discountType;
	}

	public String getCalFunction() {
		return this.calFunction;
	}

	public void setCalFunction(String calFunction) {
		this.calFunction = calFunction;
	}

	public String getParams() {
		return this.params;
	}

	public void setParams(String params) {
		this.params = params;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}
